/**
 * @author Tobias Boehm
 *
 * 03.07.2011
 */
package org.anddev.andengine.extension.tbsengine.server;

import org.anddev.andengine.extension.multiplayer.protocol.server.SocketServerDiscoveryServer;
import org.anddev.andengine.extension.multiplayer.protocol.shared.IDiscoveryData;
import org.anddev.andengine.extension.multiplayer.protocol.shared.IDiscoveryData.DefaultDiscoveryData;

/**
 * This is a basic implementation of a {@link SocketServerDiscoveryServer} with
 * an {@link DefaultDiscoveryData}.
 * 
 * @author Tobias Boehm
 *
 */
public class BaseSocketDiscoveryServer extends SocketServerDiscoveryServer<IDiscoveryData> {

	private final DefaultDiscoveryData mDiscoveryData;
	
	public BaseSocketDiscoveryServer(final byte[] pServerIP, final int pServerPort){
		
		this.mDiscoveryData = new DefaultDiscoveryData(pServerIP, pServerPort);
	}
	
	@Override
	protected DefaultDiscoveryData onCreateDiscoveryResponse() {
		
		return this.mDiscoveryData;
	}
}
